package com.example.birdfriends.service;

import com.example.birdfriends.pojo.bird.Bird;
import com.example.birdfriends.pojo.bird.BirdFront;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BirdService {
    public List<BirdFront> findBirdNamesAndImages(Long start, Long lineNum);
    public Long countBirdsNumber();
    public Long findMyBirdsNumber(Long authorId);
    public List<String> findBirdSections();
    public Bird findBirdByBid(Long bid);
    public List<Bird> findBirdsByAuthorId(Long authorId, Long start, Long lineNum);
    public int addBirdEntry(Bird bird);
    public List<Bird> findBirdByNameAndSection(String birdname, String section);
    public int updateBirdImageByBid(Bird bird);
    public int deleteMyBirdEntry(Long bid);
    public int updateMyBirdEntry(Bird bird);
    public List<Bird> findBirdsBySearch(String section, String name, long start, long lineNum);
    public int countBirdsBySearch(String section, String name);
}
